package br.org.credfaz.sis.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

import br.org.credfaz.sis.dao.TceClienteDAO;
import br.org.credfaz.sis.modelo.TceCliente;

public class AtualizaDbClientesAction {
	
	private List<TceCliente> dbclientes;
	
	@Action(value="listaDbClientes", results= {
			@Result(name="ok", type="redirectAction", 
					params= {"actionName", "atualizaAvalfinac"})
	})
	public String execute(){
		dbclientes = new TceClienteDAO().lista();
		return "ok";
	}
	public List<TceCliente> getDbClientes(){
		return dbclientes;
	}
}
